<template>
  <div class="adminfeedBack">
    <el-table :data="tableData" style="width: 1100px" class="marginAuto">
      <el-table-column prop="date" label="账号" width="180"> </el-table-column>
      <el-table-column prop="name" label="反馈内容" width="180">
      </el-table-column>
      <el-table-column prop="address" label="操作">
        <template slot-scope="scope">
          <div @click="handleRow(scope.row)">操作</div>
        </template>
      </el-table-column>
    </el-table>
    <div class="marginAuto preorderInfoHeader flex align-center">
      <el-pagination background layout="prev, pager, next" :total="1000">
      </el-pagination>
    </div>

    <el-dialog
      title="内容"
      :visible.sync="dialogVisible"
      width="30%"
      :before-close="handleClose"
    >
      <span>{{dialogContent}}</span>
      <span slot="footer" class="dialog-footer">
        <!-- <el-button @click="dialogVisible = false">取 消</el-button> -->
        <el-button type="primary" @click="dialogVisible = false"
          >关 闭</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "adminfeedBack",
  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄",
        },
      ],
      dialogVisible: false,
      dialogContent: ''
    };
  },
  methods: {
    handleClose(done) {
      this.$confirm("确认关闭？")
        .then((_) => {
          done();
        })
        .catch((_) => {});
    },
    handleRow(im) {
      this.dialogContent = im
      this.dialogVisible = true
    },
    handleRemove(file, fileList) {
      console.log(file, fileList);
    },
    handlePictureCardPreview(file) {
      this.dialogImageUrl = file.url;
      this.dialogVisible = true;
    },
    submit() {},
  },
};
</script>

<style lang="scss" scoped="scoped">
.adminfeedBack {
  .preorderInfoHeader {
    width: 1100px;
    height: 80px;
  }
  .headerInput {
    width: 200px;
    height: 40px;
    margin-right: 10px;
  }
  .headerInputbtn {
    height: 40px;
  }
  .userInfo {
    width: 420px;
    color: gray;
    font-size: 22px;
    margin-top: 100px;
  }
}
</style>
